package com.sunye.elasticsearch.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * <p>
 *
 * </p>
 *
 * @author sunye
 * @since 2022-07-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class EsDog implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 1级分类id
     */
    private Integer categoryFirstId;


    /**
     * 2级分类id
     */
    private Integer categorySecondId;

    /**
     * 名称
     */
    @ApiModelProperty("名称")
    private String dogName;

    /**
     * 简介
     */
    private String introduct;


    /**
     * 颜色（白色，黑色，棕色，三中颜色）
     */
    private String color;


    /**
     * 售卖状态
     */
    private String saleStatus;


    @ApiModelProperty("狗的年龄")
    private Integer age;

    /**
     * 是否为推荐狗（Boolean类型）
     */
    @ApiModelProperty("是否为推荐狗")
    private Boolean recommend;

    /**
     * 狗的照片
     */
    @ApiModelProperty("狗的照片")
    private String img;

    /**
     * 售卖价格
     */
    @ApiModelProperty("售卖价格")
    private Double price;



    @ApiModelProperty("卖点id(逗号分割)")
    private String sellingPointId;


    @ApiModelProperty("销量")
    private Integer salesNumber;

    @ApiModelProperty("品种")
    private String dogBreed;


    /**
     * 纬度
     */
    @Field(type = FieldType.Keyword)
    @ApiModelProperty("纬度")
    private double lat;


    /**
     * 经度
     */
    @Field(type = FieldType.Keyword)
    @ApiModelProperty("经度")
    private double lon;


    private String deleted;

}
